SftTree/OCX 7.0

SftTree.CalcColumnFromPosPix Method

Softel vdm, Inc.

Returns the column number for given coordinates.

Syntax       

VB.NET

Boolean = object.CalcColumnFromPosPix(ByVal XPosPix As OLE_XPOS_PIXELS, ByVal YPosPix As OLE_YPOS_PIXELS, ByRef ColIndex As Short)  As Boolean

VB

Boolean = object.CalcColumnFromPosPix(ByVal XPosPix As OLE_XPOS_PIXELS, ByVal YPosPix As OLE_YPOS_PIXELS, ColIndex As Integer)  As Boolean

C#.NET

bool Boolean = object.CalcColumnFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, out short ColIndex);

VC++

VARIANT_BOOL Boolean = object->CalcColumnFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, short* ColIndex);

C

HRESULT object->raw_CalcColumnFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, short* ColIndex, VARIANT_BOOL* Boolean);

Delphi

Boolean := object.CalcColumnFromPosPix(XPosPix : Integer; YPosPix : Integer; out ColIndex : Smallint)   : WordBool;

object

A SftTree object.

XPosPix

The horizontal position relative to the top, left corner of the tree control in pixels.

YPosPix

The vertical position relative to the top, left corner of the tree control in pixels.

ColIndex

Returns the column number at the specified coordinates xPosPix, yPosPix.

Boolean

Boolean

Description

True

A column was located at the specified coordinates xPosPix, yPosPix.

False

No column was located at the specified coordinates xPosPix, yPosPix.

Comments

The CalcColumnFromPosPix method returns the column number for given coordinates.

The CalcColumnFromPos and CalcColumnFromPosPix methods are synonyms, but may use different coordinate systems.

This method returns the column number ColIndex at the coordinates described by xPosPix, yPosPix.  This position may be located above an item or a column headerCalcCellFromPosPix can be used to determine the cell.  CalcIndexFromPosPix can be used to determine the index of the item. 

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com